package homework.homework01;

public class Designer extends Programmer {//设计师类
    private int bonus;//奖金

    //有参构造
    public Designer(int no, String name, int age, int sal, String lang, int bonus) {
        super(no, name, age, sal, lang);
        this.bonus = bonus;
    }

    public Designer(String lang, int bonus) {
        super(lang);
        this.bonus = bonus;
    }

    public Designer(int bonus) {
        this.bonus = bonus;
    }

    //无参构造
    public Designer() {
    }

    //get and set
    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    public String getInfo() {
        return super.getInfo() + " 奖金：" + bonus;
    }
}
